package com.example.understandvideo.mapper;

import com.example.understandvideo.pojo.AnalysisTask;
import com.example.understandvideo.pojo.TaskRequest;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface AnalysisTaskDao {
    int deleteByPrimaryKey(Long id);

    int insert(AnalysisTask record);

    int insertSelective(AnalysisTask record);

    AnalysisTask selectByPrimaryKey(Long id);
    AnalysisTask selectByPid(Long id);
    List<AnalysisTask> search(TaskRequest request);
    Long count(TaskRequest request);

    int updateByPrimaryKeySelective(AnalysisTask record);

    int updateByPrimaryKey(AnalysisTask record);
}